<div id="webboard-pagination">
	{if ($selected_page > 1)}
		<a class="first" href="webboard.php?{$page_type}={$topic_id}.1">First</a>
	{else}
		<span class="disable">First<span>
	{/if}
	
	{if ($selected_page - 1) >= 1}
		<a class="prev" href="webboard.php?{$page_type}={$topic_id}.{$selected_page-1}">Previous</a>
	{else}
		<span class="disable">Previous<span>
	{/if}
	
	{if $remote_first_page_visible}
		<a class="first" href="webboard.php?{$page_type}={$topic_id}.1">1</a>
		{if $page_group_start-1> 1}
		...
		{/if}
	{/if}
	
	{section name=page start=$page_group_start loop=$page_group_end+1}
		{if $smarty.section.page.index == $selected_page}
			<a class="selected" href="webboard.php?{$page_type}={$topic_id}.{$smarty.section.page.index}"><b>{$smarty.section.page.index}</b></a>
		{else}
			<a class="unselected" href="webboard.php?{$page_type}={$topic_id}.{$smarty.section.page.index}">{$smarty.section.page.index}</a>
		{/if}
	{/section}
	
	{if $remote_last_page_visible}
		{if $page_group_end+1 < $total_page_count}
		...
		{/if}
		<a class="last" href="webboard.php?{$page_type}={$topic_id}.{$total_page_count}">{$total_page_count}</a>
	{/if}
	
	{if ($selected_page + 1) <= $total_page_count}
		<a class="next" href="webboard.php?{$page_type}={$topic_id}.{$selected_page+1}">Next</a>
	{else}
		<span class="disable">Next<span>
	{/if}
	
	{if ($selected_page < $total_page_count)}
		<a class="last" href="webboard.php?{$page_type}={$topic_id}.{$total_page_count}">Last</a>
	{else}
		<span class="disable">Last<span>
	{/if}
</div>